import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import axios from "./http.js";

import global from "./global.js";

Vue.config.productionTip = false;
Vue.use(ElementUI);

//设置全局变量$axios
Vue.prototype.$axios = axios;

//设置全局变量CS，用于跨组件通信
Vue.prototype.CS = global;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
